package com.boot2551.control;

import com.boot2551.test.Mylog;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@RequestMapping(value = "test")
@Controller
public class Test {
    public static final Logger log= LoggerFactory.getLogger(Test.class);
    @GetMapping(value = "/mytest")
    @ResponseBody
    public String mytest(){
        log.info("mytest");
        return "hello";
    }
}
